package com.aop;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@ComponentScan("com.aop")
@EnableAspectJAutoProxy
@Configuration
public class AspectConfig {

    @Bean
    public UserDaoByAno getUserDao() {
        UserDaoByAno userDao = new UserImplByAno();
        return  userDao;
    }
}
